package com.xs.designpattern;

/**
 * @author xs
 */
public class Main {
    public static void main(String[] args) {
        OrcKing king = new OrcKing();
        //国王发送三道请求给不同的处理人员进行处理
        king.makeRequest(new Request(RequestType.DEFEND_CASTLE, "保卫城堡"));
        king.makeRequest(new Request(RequestType.TORTURE_PRISONER, "酷刑囚犯"));
        king.makeRequest(new Request(RequestType.COLLECT_TAX, "征税"));
    }
}